﻿using System.Xml;
using System.Xml.Serialization;
using System;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Xml.Schema;

namespace ScormModel
{
    [Serializable()]
    public class RollupAction
    {
        private string _action = "satisfied";
         [NonSerialized]
        private XmlNode _rollupActionContent;
        [XmlAttribute("action")]
        public string Action
        {
            get { return this._action; }
            set { this._action = value; }
        }
        
        [XmlIgnoreAttribute]
        public XmlNode RollupActionContent
        {
            get { return this._rollupActionContent; }
            set { this._rollupActionContent = value; }
        }
        public void buildRollupAction()
        {
            if ((XmlAttribute)_rollupActionContent.Attributes.GetNamedItem("action") != null)
            {
                _action = ((XmlAttribute)_rollupActionContent.Attributes.GetNamedItem("action")).Value;
            }
        }
    }
}
